export default [{
    path: '/',
    name: 'root',
    redirect: '/login'
}, {
    // Login
    path: '/login',
    name: 'login',
    component: resolve => {
        require(['./views/login/login.vue'], resolve);
    }
}, {
    // PPT
    path: '/ppt/:id',
    name: 'ppt',
    component: resolve => {
        require(['./views/ppt/ppt.vue'], resolve);
    }    
}, {
    // Main
    path: '/main',
    name: 'main',
    component: resolve => {
        require(['./views/main/main.vue'], resolve);
    },
    children: [{
        // Dashboard
        path: '/dashboard',
        name: 'dashboard',
        component: resolve => {
            require(['./views/dashboard/dashboard.vue'], resolve);
        }
    }, {
        // 通行证列表
        path: '/passport',
        name: 'passport',
        component: resolve => {
            require(['./views/passport/passport.vue'], resolve);
        }
    }, {
        // 比赛列表
        path: '/compete',
        name: 'compete',
        component: resolve => {
            require(['./views/compete/compete.vue'], resolve);
        }
    }, {
        // 门票列表
        path: '/ticket',
        name: 'ticket',
        component: resolve => {
            require(['./views/ticket/ticket.vue'], resolve);
        }
    }, {
        // 演出列表
        path: '/show',
        name: 'show',
        component: resolve => {
            require(['./views/show/show.vue'], resolve);
        }
    }, {
        // 酒店、餐饮列表
        path: '/hotel',
        name: 'hotel',
        component: resolve => {
            require(['./views/hotel/outer.vue'], resolve);
        }
    }, {
        // 支付列表
        path: '/payment',
        name: 'payment',
        component: resolve => {
            require(['./views/payment/payment.vue'], resolve);
        }
    }, {
        // 日志列表
        path: '/log',
        name: 'log',
        component: resolve => {
            require(['./views/log/log.vue'], resolve);
        }
    }, {
        // 交易审计列表
        path: '/tradeaudit',
        name: 'tradeaudit',
        component: resolve => {
            require(['./views/trade_audit/trade_audit.vue'], resolve);
        }
    }, {
        // 比赛场次安排
        path: '/session',
        name: 'session',
        component: resolve => {
            require(['./views/session/session.vue'], resolve);
        }
    }, {
        // 成绩录入
        path: '/score/:id',
        name: 'score',
        component: resolve => {
            require(['./views/session/session_score.vue'], resolve);
        }    
    }, {
        // 比赛设置
        path: '/setting',
        name: 'setting',
        component: resolve => {
            require(['./views/setting/index.vue'], resolve);
        }    
    }]
}];